package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DeliveryManner;
import com.ecoolex.chinadutyfree.retailer.entity.DeliveryMannerExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DeliveryMannerMapper {
    long countByExample(DeliveryMannerExample example);

    int deleteByExample(DeliveryMannerExample example);

    int deleteByPrimaryKey(Integer deliveryMannerId);

    int insert(DeliveryManner record);

    int insertSelective(@Param("record") DeliveryManner record, @Param("selective") DeliveryManner.Column ... selective);

    DeliveryManner selectOneByExample(DeliveryMannerExample example);

    List<DeliveryManner> selectByExample(DeliveryMannerExample example);

    DeliveryManner selectByPrimaryKey(Integer deliveryMannerId);

    DeliveryManner selectByPrimaryKeyWithLogicalDelete(@Param("deliveryMannerId") Integer deliveryMannerId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DeliveryManner record, @Param("example") DeliveryMannerExample example, @Param("selective") DeliveryManner.Column ... selective);

    int updateByExample(@Param("record") DeliveryManner record, @Param("example") DeliveryMannerExample example);

    int updateByPrimaryKeySelective(@Param("record") DeliveryManner record, @Param("selective") DeliveryManner.Column ... selective);

    int updateByPrimaryKey(DeliveryManner record);

    int batchInsert(@Param("list") List<DeliveryManner> list);

    int batchInsertSelective(@Param("list") List<DeliveryManner> list, @Param("selective") DeliveryManner.Column ... selective);

    int logicalDeleteByExample(@Param("example") DeliveryMannerExample example);

    int logicalDeleteByPrimaryKey(Integer deliveryMannerId);
}